import request from '@/utils/request'

// 查询日销售目标列表
export function listBiSaleDateTarget(query) {
  return request({
    url: '/sale/BiSaleDateTarget/list',
    method: 'get',
    params: query
  })
}

// 查询日销售目标详细
export function getBiSaleDateTarget(id) {
  return request({
    url: '/sale/BiSaleDateTarget/' + id,
    method: 'get'
  })
}

// 新增日销售目标
export function addBiSaleDateTarget(data) {
  return request({
    url: '/sale/BiSaleDateTarget',
    method: 'post',
    data: data
  })
}

// 修改日销售目标
export function updateBiSaleDateTarget(data) {
  return request({
    url: '/sale/BiSaleDateTarget',
    method: 'put',
    data: data
  })
}

// 删除日销售目标
export function delBiSaleDateTarget(id) {
  return request({
    url: '/sale/BiSaleDateTarget/' + id,
    method: 'delete'
  })
}
